import {NgModule} from "@angular/core";
import {RouterModule, Routes} from "@angular/router";
import {SharedModule} from "../../shared/shared.module";

import {CountListComponent} from "./count-list/count-list.component";
import {CountEditComponent} from "./count-edit/count-edit.component";

const routes: Routes = [
        {path: '', redirectTo: 'list'},
        {path: 'list', component: CountListComponent},
        {path: 'add', component: CountEditComponent},
        {path: 'modify/:code', component: CountEditComponent},
];

@NgModule({
  imports: [
    SharedModule.forRoot(),
    RouterModule.forChild(routes)
  ],
  declarations: [
    CountListComponent,
    CountEditComponent
  ],
  providers: []
})
export class CountModule {
}
